/**
 * @file mahjong-night.cpp
 * @brief MahJong-Night client main function definition
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; version 3 of the License.
 *
 * @author VestniK (Sergey N.Vidyuk) sir.vestnik@gmail.com
 * @date 23 Jan 2009
 */
#include <QtGui/QApplication>
#include <QtCore/QThread>

#include <QRemoteSignal>

#include "mainform.h"

int main (int argc, char** argv) {
    QApplication app(argc,argv);
    app.setOrganizationName("VestniK");
    app.setApplicationName("MahjongNight");
    // We are going to use JSON for comunication
    qrs::ServicesManager::setDefaultSerializer(jsonSerializer);

    QThread::currentThread()->setObjectName("ClientGui");
    mjn::MainForm mainWindow;
    mainWindow.show();

    return app.exec();
}
